--- import { getCollection, render } from 'astro:content'; import MarketingLayout from '../../components/MarketingLayout.astro'; import AuthorCard from '../../components/AuthorCard.astro'; export async function getStaticPaths() { const posts = await getCollection('blog'); return posts .filter((post) => !post.data.draft) .map((post) => { const slug = post.id.replace(/\.(md|mdx)$/i, ''); return { params: { slug }, props: { post, slug }, }; }); } const { post, slug } = Astro.props; const { Content, headings } = await render(post); const sectionHeadings = headings.filter((heading) => heading.depth === 2); ---

{post.data.title}

{post.data.description}